package kr.hkit.powerjava.chapter06.work;

public class Prog6 {
	public static void main(String[] args) {

		int count = 0;

		for (int i = 2; i <= 100; i++) {
			count = 0;

			for (int j = 2; j < i; j++) {

				if ((i % j) == 0) {
					count++;
					break;

				}

			}
			if (count == 0)
				System.out.printf("%d 는 소수입니다.\n", i);

		}

	}
}
